package com.study.example.controller;

import com.study.example.service.ICityDubboConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloWorldController {


    @Autowired
    private ICityDubboConsumerService cityDubboConsumerService;

    @RequestMapping("hello")
    public String hello() {
        cityDubboConsumerService.printCity();
        return "hello world";
    }

}
